<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var http01 = Promise.resolve(1001);
        var http02 = Promise.resolve("detail")
        async function show(){
            var id = await http01;
            console.log(id);
            // 根据id发送http请求
            var detail = await http02;
            console.log(detail);
        }
        show()
    </script>
</body>
</html>